package com.kongjs.application.controller;

import com.kongjs.application.model.vo.NotificationItemVO;
import com.kongjs.common.rest.annotation.Rest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@Rest
@RestController
@RequestMapping("/notifications")
public class NotificationController {


    @GetMapping
    public List<NotificationItemVO> list() {
        return new ArrayList<>();
    }

    /*
    @GetMapping(value = "/sse", produces = {MediaType.TEXT_EVENT_STREAM_VALUE})
    public SseEmitter sseEmitter(@RequestParam String clientId, @RequestParam("access_token") String token) {
        return sseEmitterManager.connect(clientId);
    }
    */
}
